<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>
<style type="text/css">
	img{border:0;}
	*{margin:0; padding:0;}
	table{border-collapse:collapse;}
	.msg_wrap{width:550px; padding:10px;}
	.mag_title{margin-bottom:10px;}
	#content1, #content2, #content3{position:relative;}
	#content{background:url('<?=$member_skin_path?>/img/memo/tabs_bar_bg.gif') repeat-x left top; margin-bottom:5px;}
	#content ul{overflow:hidden; width:550px;  background:url('<?=$member_skin_path?>/img/memo/tabs_bar_right.gif') no-repeat right top;}
	#content li{list-style:none; float:left;}
	.mag_table{border-top:3px solid #2a498c; margin-bottom:30px;}
	.mag_table th{background-color:#eeeeee; border-right:1px solid #fff; color:#2a498c; font-size:12px; padding:10px 0;}
	.mag_table td{font-size:12px; color:#555; text-align:center; padding:5px 0;}
	.msg_pagenum{font-size:11px; text-align:center; color:#888; border-bottom:1px solid #94a4c5; padding-bottom:10px;}
	.msg_pagenum a{text-decoration:none; color:#888;}
	.msg_pagenum a:hover{color:#2a498c;}
	.msg_btn{text-align:right; padding:10px 0;}
	
	.msg_count{position:absolute; left:373px; top:-32px; width:132px; height:24px; line-height:28px; padding-left:30px; background:url('<?=$member_skin_path?>/img/memo/ptext_bg.gif') no-repeat left top; font-size:11px;}
	.msg_count span{font-weight:bold;}
</style>
<div class="msg_wrap">
	<div class="mag_title">
		  <img src="<?=$member_skin_path?>/img/memo/title_message0<?if($kind=="send") echo"2";else echo"1";?>.gif" id="t_img"/>
	</div>
	<div id="content">
		<ul>
			<li><a href="./memo.php?kind=recv" ><img src="<?=$member_skin_path?>/img/memo/tabs_me01<?if($kind=="recv") echo"_on";?>.gif" alt="받은쪽지" /></a></li>
			<li><a href="./memo.php?kind=send" ><img src="<?=$member_skin_path?>/img/memo/tabs_me02<?if($kind=="send") echo"_on";?>.gif" alt="보낸쪽지" /></a></li>
			<li><a href="./memo_form.php" ><img src="<?=$member_skin_path?>/img/memo/tabs_me03.gif" alt="쪽지보내기" /></a></li>
		</ul>
	</div>
	<div id="content1">
		<div class="msg_count">
			전체 <?=$kind_title?> 쪽지 <span><?=$total_count?></span>통
		</div>
		<table width="100%" class="mag_table">
			<tr>
				<th>보낸사람</th>
				<th>보낸시간</th>
				<th>읽은시간</th>
				<th>삭제</th>
			</tr>
			<? for ($i=0; $i<count($list); $i++) { ?>
			<tr>
				<td><?=$list[$i][mb_nick]?></td>
				<td><a href="<?=$list[$i][view_href]?>"><?=$list[$i][send_datetime]?></a></td>
				<td><a href="<?=$list[$i][view_href]?>"><?=$list[$i][read_datetime]?></a></td>
				<td><a href="javascript:del('<?=$list[$i][del_href]?>');"><img src="<?=$member_skin_path?>/img/btn_comment_delete.gif" width="45" height="14" border="0"></a></td>
			</tr>
			<? } ?>
			
			<? if ($i==0) { echo "<tr><td height=100 align=center colspan=4>자료가 없습니다.</td></tr>"; } ?>

		</table>
		
	</div>
</div>



<table width="580" border="0" cellspacing="0" cellpadding="0">
<tr>
    <td height="40" align="center" valign="bottom"><a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/memo/btn_close.gif"  border="0"></a><br><br></td>
</tr>
</table>

